package com.ruoyi.agent.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 管理对象 sys_agent
 *
 * @author ruoyi
 * @date 2024-06-12
 */
public class SysAgent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 代理商主键ID */
    private Long id;

    /** 代理商名称 */
    @Excel(name = "代理商名称")
    private String name;

    /** 联系人名称 */
    @Excel(name = "联系人名称")
    private String userName;

    /** 联系人邮箱 */
    @Excel(name = "联系人邮箱")
    private String email;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 所在城市 */
    @Excel(name = "所在城市")
    private String city;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    /** 商家数量 */
    @Excel(name = "商家数量")
    private Long storeNum;

    /** 对应权限 */

    private String authorize;

    /** 标识 */
    @Excel(name = "标识")
    private String mark;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 前台域名 */
    @Excel(name = "前台域名")
    private String frontDomain;

    /** 后台域名 */
    @Excel(name = "后台域名")
    private String afterDomain;

    /** 法人身份证图片地址 */
    @Excel(name = "法人身份证图片地址")
    private String cardUrl;

    /** 代理商logo图片地址 */
    @Excel(name = "代理商logo图片地址")
    private String logoUrl;

    /** 营业执照图片地址 */
    @Excel(name = "营业执照图片地址")
    private String licenseUrl;

    /** 承诺函图片地址 */
    @Excel(name = "承诺函图片地址")
    private String commitmentUrl;

    /** 帐号状态（0正常 1停用） */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 有效期开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 有效期结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    private Long userId;

    private Long deptId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setCity(String city)
    {
        this.city = city;
    }

    public String getCity()
    {
        return city;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setBalance(BigDecimal balance)
    {
        this.balance = balance;
    }

    public BigDecimal getBalance()
    {
        return balance;
    }
    public void setStoreNum(Long storeNum)
    {
        this.storeNum = storeNum;
    }

    public Long getStoreNum()
    {
        return storeNum;
    }
    public void setAuthorize(String authorize)
    {
        this.authorize = authorize;
    }

    public String getAuthorize()
    {
        return authorize;
    }
    public void setMark(String mark)
    {
        this.mark = mark;
    }

    public String getMark()
    {
        return mark;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setFrontDomain(String frontDomain)
    {
        this.frontDomain = frontDomain;
    }

    public String getFrontDomain()
    {
        return frontDomain;
    }
    public void setAfterDomain(String afterDomain)
    {
        this.afterDomain = afterDomain;
    }

    public String getAfterDomain()
    {
        return afterDomain;
    }
    public void setCardUrl(String cardUrl)
    {
        this.cardUrl = cardUrl;
    }

    public String getCardUrl()
    {
        return cardUrl;
    }
    public void setLogoUrl(String logoUrl)
    {
        this.logoUrl = logoUrl;
    }

    public String getLogoUrl()
    {
        return logoUrl;
    }
    public void setLicenseUrl(String licenseUrl)
    {
        this.licenseUrl = licenseUrl;
    }

    public String getLicenseUrl()
    {
        return licenseUrl;
    }
    public void setCommitmentUrl(String commitmentUrl)
    {
        this.commitmentUrl = commitmentUrl;
    }

    public String getCommitmentUrl()
    {
        return commitmentUrl;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("userName", getUserName())
            .append("email", getEmail())
            .append("phone", getPhone())
            .append("city", getCity())
            .append("address", getAddress())
            .append("balance", getBalance())
            .append("storeNum", getStoreNum())
            .append("authorize", getAuthorize())
            .append("mark", getMark())
            .append("password", getPassword())
            .append("frontDomain", getFrontDomain())
            .append("afterDomain", getAfterDomain())
            .append("cardUrl", getCardUrl())
            .append("logoUrl", getLogoUrl())
            .append("licenseUrl", getLicenseUrl())
            .append("commitmentUrl", getCommitmentUrl())
            .append("status", getStatus())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
